Skip to main content

Upload Document

During document upload, document's pages and type is required.

curl '<base_url>/api/v2/document' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <profile_token>' \
--data '{
"type":"XXX_ID/SE/XXX_PA/... (Required)",
"pages": [
"Data URI - data:content/type;base64",
...
] //list of base64 images
"cropped":true/false,
"rotated":true/false,
"upload_source":"KYC/VIDEO/PASSWORD",
"device_data": {
"id": "id",
"os": "ios/android",
"brand": "brand",
"carrier": "",
"sdkVersion": ""
},
"location": {
"speed": "0.0",
"heading": "0.0",
"accuracy": "0.0",
"altitude": "0.0",
"latitude": "0.0",
"longitude": "0.0"
},
"nfc": {
"mrz": "I<<<<<<<<<",
"photo": {
"width": int,
"base64": "Data URI - data:content/type;base64",
"height": int
}
},
"attempt":int
}'

Status codes:

201: Success

400: Failure